package event;

public abstract class AlfaEvent {

	private int from;
	private int to;
	private String type;

	public AlfaEvent(int from, int to, String type) {
		this.to = to;
		this.from = from;
		this.type = type;
	}
	
	public String type(){
		return type;
	}

	public abstract String param();

	public int fromID(){
		if (from == -1) {
			System.out.println("alfaevent fromid -1");
		}
		return from;
	}

	public int toID() {
		if (to == -1) {
			System.out.println("alfaevent toid -1");
		}
		return to;
	}
	
	public abstract String toString();
	
}
